package com.happy.cat.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.happy.cat.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 账号余额明细(猫粮)对象 user_balance_pet_value_detail
 * 
 * @author verne
 * @date 2020-08-13
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName(autoResultMap = true )
@ApiModel(value="账号余额明细(猫粮)对象", description="账号余额明细(猫粮)对象数据")
public class UserBalancePetValueDetail implements Serializable {

private static final long serialVersionUID=1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 明细类型 */
    @Excel(name = "明细类型")
    @ApiModelProperty(value = "明细类型")
    private Long type;

    /** 事项 */
    @Excel(name = "事项")
    @ApiModelProperty(value = "事项")
    private String text;

    /** 金额 */
    @Excel(name = "金额")
    @ApiModelProperty(value = "金额")
    private Double amount;

    /** 当前金额 */
    @Excel(name = "当前金额")
    @ApiModelProperty(value = "当前金额")
    private Double currentAmount;

    /** 时间 */
    @Excel(name = "时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "时间")
    private Date changeTime;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty(value = "用户id")
    private Long accountId;

    @ApiModelProperty(value = "流水ID")
    private Long transId;

    @ApiModelProperty(value = "币类型: 1人名币，0猫粮")
    private Integer amountType;

    @ApiModelProperty(value = "收入:1, 支出:0")
    private Integer symbol;

    @TableField(exist = false)
    private SocialTrans trans;
}
